#ifndef _FTPWorkThread_H_
#define _FTPWorkThread_H_

#include "IocpThread.h"

struct FTPCommandHeader
{
	int type;
};

struct FTPCommandTest : public FTPCommandHeader
{
	int dddd;
};


class FTPWorkThread : public IocpThread
{
public:
	FTPWorkThread() { }
	~FTPWorkThread() { }


	virtual void IocpWork(void *pvArg)
	{
		FTPCommandHeader *header = (FTPCommandHeader *)pvArg;

		switch(header->type)
		{
		case 1:
			{
				FTPCommandTest *t = (FTPCommandTest *)header;

				printf("%d\n", t->dddd);
			}
			break;
		}
	}

	virtual void Error(void *pvArg, int lasterror)
	{
		printf("%s, Error : %d\n", __FUNCTION__, lasterror);
	}

};

#endif // _FTPWorkThread_H_
